﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml.Serialization;

namespace DDBS_test
{
    public class Shard
    {
        [XmlElement("Name")]
        public String Name { get; set; }

        [XmlElement("Identifier")]
        public String Identifier { get; set; }

        [XmlElement("URL")]
        public String URL { get; set; }

        [XmlElement("Path")]
        public String Path { get; set; }

        [XmlElement("DB")]
        public String DB { get; set; }

        public Shard()
        { }

        public Shard(String name)
        {
            this.Name = name;
        }

        public Shard(String name, String URL, String db)
        {
            this.Name = name;
            this.URL = URL;
            this.DB = db;
        }

        public Shard(String name, String Identifier, String URL, String db)
        {
            this.Name = name;
            this.Identifier = Identifier;
            this.URL = URL;
            this.DB = db;
        }

    }
}
